package com.example.task1.bean;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class FastMyCollectBean {
    /**
     * total : 1
     * rows : [{"id":7,"name":"锅包肉","imgUrl":"/dev-api/profile/upload/image/2022/03/08/07bfdf31-cbb3-40fd-bb7e-63b8c28172ef.jpg","authorId":7,"ingredients":"猪里脊肉 300g，鸡蛋1 个，胡萝卜丝少许，香菜几片，盐 10g，料酒 1 勺，淀粉 100g，糖 60g，白醋90g，米醋10g，京葱丝、姜丝、蒜末适量","likeCount":1,"collectionCount":1,"myLikeState":true,"myCollectionState":true,"stepList":null,"author":null}]
     * code : 200
     * msg : 查询成功
     */

    @SerializedName("total")
    private int total;
    @SerializedName("code")
    private int code;
    @SerializedName("msg")
    private String msg;
    @SerializedName("rows")
    private List<RowsDTO> rows;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<RowsDTO> getRows() {
        return rows;
    }

    public void setRows(List<RowsDTO> rows) {
        this.rows = rows;
    }

    public static class RowsDTO {
        /**
         * id : 7
         * name : 锅包肉
         * imgUrl : /dev-api/profile/upload/image/2022/03/08/07bfdf31-cbb3-40fd-bb7e-63b8c28172ef.jpg
         * authorId : 7
         * ingredients : 猪里脊肉 300g，鸡蛋1 个，胡萝卜丝少许，香菜几片，盐 10g，料酒 1 勺，淀粉 100g，糖 60g，白醋90g，米醋10g，京葱丝、姜丝、蒜末适量
         * likeCount : 1
         * collectionCount : 1
         * myLikeState : true
         * myCollectionState : true
         * stepList : null
         * author : null
         */

        @SerializedName("id")
        private int id;
        @SerializedName("name")
        private String name;
        @SerializedName("imgUrl")
        private String imgUrl;
        @SerializedName("authorId")
        private int authorId;
        @SerializedName("ingredients")
        private String ingredients;
        @SerializedName("likeCount")
        private int likeCount;
        @SerializedName("collectionCount")
        private int collectionCount;
        @SerializedName("myLikeState")
        private boolean myLikeState;
        @SerializedName("myCollectionState")
        private boolean myCollectionState;
        @SerializedName("stepList")
        private Object stepList;
        @SerializedName("author")
        private Object author;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getImgUrl() {
            return imgUrl;
        }

        public void setImgUrl(String imgUrl) {
            this.imgUrl = imgUrl;
        }

        public int getAuthorId() {
            return authorId;
        }

        public void setAuthorId(int authorId) {
            this.authorId = authorId;
        }

        public String getIngredients() {
            return ingredients;
        }

        public void setIngredients(String ingredients) {
            this.ingredients = ingredients;
        }

        public int getLikeCount() {
            return likeCount;
        }

        public void setLikeCount(int likeCount) {
            this.likeCount = likeCount;
        }

        public int getCollectionCount() {
            return collectionCount;
        }

        public void setCollectionCount(int collectionCount) {
            this.collectionCount = collectionCount;
        }

        public boolean isMyLikeState() {
            return myLikeState;
        }

        public void setMyLikeState(boolean myLikeState) {
            this.myLikeState = myLikeState;
        }

        public boolean isMyCollectionState() {
            return myCollectionState;
        }

        public void setMyCollectionState(boolean myCollectionState) {
            this.myCollectionState = myCollectionState;
        }

        public Object getStepList() {
            return stepList;
        }

        public void setStepList(Object stepList) {
            this.stepList = stepList;
        }

        public Object getAuthor() {
            return author;
        }

        public void setAuthor(Object author) {
            this.author = author;
        }
    }
}
